<extend name="layout:index"/>

<block name="content">
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span><i class="icon-table"></i>管理中心-匹配认购积分</span>
    </div>
    <div class="mws-panel-body no-padding">
        <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
	        <div id="DataTables_Table_1_length" class="dataTables_length">
	        待匹配认购积分:{$peo.user_money3} 待匹配人数:{$count} 当前价格:{$gujia} 当前价格剩余积分数量:{$points_num1}(预计匹配{$tishi}认购积分,将上涨{$zhangjia})<br>
			市场剩余E积分数量{$market.sell_num}   市场累积出售E积分总数量{$s_all}
	        </div>
	        <form action="/admin/user/actrgjf" method="post">
	        	<input type="hidden" name="gujia" value="{$gujia}">
	        	<div class="dataTables_filter" id="DataTables_Table_1_filter">
		        	<label>匹配人数: 
		        	<input aria-controls="DataTables_Table_1" id="renshu" name="renshu" type="text">
		        	<input type="submit" id="btn4" value="确定">
		        	</label>
		        </div>
	        </form>
	        
	        <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
	            <thead>
	                <tr role="row">
	                    <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 187px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">编号</th>
	                    <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 249px;" aria-label="Browser: activate to sort column ascending">用户名</th>
	                    <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 233px;" aria-label="Platform(s): activate to sort column ascending">认购积分</th>
	                    <th class="" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 162px;" aria-label="Engine version: activate to sort column ascending">注册时间</th>
	                </tr>
	            </thead>
	            
	            <tbody role="alert" aria-live="polite" aria-relevant="all">
	            	<volist name="res" id="vo" key='k'>
	            	<tr class="odd">
	                    <td class="">{$k}</td>
	                    <td class=" ">{$vo.user_name}</td>
	                    <td class=" ">{$vo.user_money3}</td>
	                    <td class=" ">{:date('Y-m-d H:i:s',$vo['reg_time'])}</td>
	                </tr>
	                </volist>
	            </tbody>
	        </table>
        	<div class="dataTables_info" id="DataTables_Table_1_info"></div>
            <div class="dataTables_paginate paging_full_numbers" id="DataTables_Table_1_paginate">
				{$url}
            </div>
        </div>
    </div>
</div>

<script>

	$('#btn4').click(function(){
		$(this).attr('disabled',true);
		var renshu = $('#renshu').val();
		var shuliang = {$count};
		if(renshu == ''){
			var txt=  "没有输入人数";
			window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
			return false;
		}
		if(!isNaN(renshu)){
			if(shuliang<renshu){
				var txt=  "输入的人数大于匹配总人数";
				window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
				return false;
			}
		}else{
			var txt=  "请输入数字";
			window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
			return false;
		}
	});
	
</script>
</block>